﻿using System;

namespace Outfish {

	/// <summary>
	/// Constructs a page that represents a JavaScript file.
	/// </summary>
	public class JavaScriptPage : WebPage {
	
		/// <summary>
		/// Constructs an empty JavaScriptPage that will need its ContentLoaded via .LoadContent(source)
		/// </summary>
		public JavaScriptPage(){}
		
		protected override WebDocument BuildDocument() {
			return new JavaScriptDocument( this.Source );
		}

	}
	
}
